import request from '@/utils/request'

/**
 * 登录日志
 * @param params
 * @returns {Promise<any>}
 */
export async function loginReport(params){
  return request(`/admin/login/logs`, { params })
}

/**
 * 登录日志统计
 * @returns {Promise<any>}
 */
export async function loginReportCount(){
  return request(`/admin/login/logs/count`)
}

/**
 * 登录日志导出
 * @returns {Promise<any>}
 */
export async function loginReportExport(){
  return request(`/admin/login/logs/export`, {
    headers: {
      "biz-source-param": "BLG"
    },
    responseType: 'blob',
  })
}

/**
 * 操作日志
 * @param params
 * @returns {Promise<any>}
 */
export async function operationReport(params){
  return request(`/admin/operation/logs`, { params, })
}
